package com.lg.erp.mapper.wangyu;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lg.erp.entity.wangyu.TDepartmentWy;
import com.lg.erp.entity.wangyu.WyTProduct;
import com.lg.erp.entity.wangyu.TPurchaseOrder;
import com.lg.erp.entity.wangyu.TStaffWy;

import java.util.List;

public interface  wyOrderMapper extends BaseMapper<TPurchaseOrder> {

    IPage<TPurchaseOrder> selectOrderByPage(Page<TPurchaseOrder> page);

    List<TStaffWy> selectStaffs();

    List<TDepartmentWy> selectDepartment();

    List<TDepartmentWy> selectDepartmentNames();

    IPage<WyTProduct> selectAll(String id,Page<WyTProduct> page);

    void updateIdById(TPurchaseOrder order);

    void updateStatusById(TPurchaseOrder order);
}
